package com.zhz.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
/**
 * @author 周恒哲
 * @date 2019/12/12
 **/
@Controller
public class PageController {

    @RequestMapping("/{page}")
    public String showPage(@PathVariable String page){
        return page;
    }
    @RequestMapping("/")
    public String login(){
        return "login";
    }
    @RequestMapping("/toAdd")
    public String add(){
        return "/user/add";
    }
    @RequestMapping("/toFoodAdd")
    public String toFoodAdd(){
        return "/food/add";
    }
    @RequestMapping("/toRestAdd")
    public String toRestAdd(){
        return "/rest/add";
    }
    @RequestMapping("/fontIndex")
    public String fontIndex(){
        return "fontIndex";
    }
}
